package org.example.pojo;

import java.util.Date;

/**
 * @Author: HAPPY
 * @Project_name: hibernate
 * @Package_name: org.example.pojo
 * @Date: 2021/10/11 19:24
 * explain:
 */
public class User {
    private String id;      // 主键，采用UUID
    private String name;    // 名称
    private String code;    //编号
    private String sex;     //性别
    private Integer age;    // 年龄
    private String dept;    // 部门
    private Double salary;  // 薪资
    private Date birth;     // 出生日期

    public User() {
    }

    public User(String name, String code, String sex, Integer age, String dept, Double salary, Date birth) {
        this.name = name;
        this.code = code;
        this.sex = sex;
        this.age = age;
        this.dept = dept;
        this.salary = salary;
        this.birth = birth;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }
}
